import React, {PureComponent} from 'react';
import VertForm from './forms/vertForm';
import PropTypes from "prop-types";
import TransferTable from './tables/transferTable';
import DemoModal from './modal/demoModal';
import TransferModal from './modal/transferModal';

class Demo extends PureComponent {
  constructor () {
    super();
    this.init();
  }

  static contextTypes = {
    router: PropTypes.object.isRequired,
    store: PropTypes.object.isRequired
  }

  init () {
    this.title = 'Form示例';
    this.subTitle = '纵向示例表单';
  }

  render () {
    return <div>
      <VertForm layout={0}></VertForm>
      <TransferTable></TransferTable>
      <DemoModal/>
      <TransferModal/>
    </div>;
  }
}

export default Demo;